
:root {
    --primary-blue: #1768e8;
    --hover-blue: #1354b3;
    --bg-gray: #f5f5f5;
}

body {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.chat-container {
    height: 100vh;
    display: flex;
}

.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 1rem;
}

.chat-history {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.message-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #ffffff;
}

.user-message {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: flex-end;
}

.bot-message {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar {
    background: var(--primary-blue);
    color: white;
}

.bot-avatar {
    background: #e5e7eb;
    color: #374151;
}

.message-content {
    max-width: 680px;
    padding: 1rem;
    border-radius: 8px;
    line-height: 1.6;
}

.user-message-content {
    background: var(--primary-blue);
    color: white;
    border-radius: 8px 8px 0 8px;
    padding: 10px;
}

.bot-message-content {
    background: var(--bg-gray);
    border-radius: 8px 8px 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding:10px;
}

.input-container {
    padding: 1.5rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    position: relative;
}

.chat-input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(23,104,232,0.1);
}

.send-button {
    position: absolute;
    right: 2.5rem;
    bottom: 2.3rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.send-button:hover {
    background: var(--hover-blue);
}

.chat-container { height: 100vh; display: flex; }
.sidebar { width: 260px; border-right: 1px solid #e5e7eb; }
/* 新增验证样式 */
.validation-text {
    position: absolute;
    bottom: -1.5rem;
    left: 1rem;
    font-size: 0.875rem;
}
.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}